package com.woniuxy.yoga.commons.redis.util.rediskeyutil;

public class BusinessRedisKeyUtil {

    /**
     *商家一分钟内是否发送过注册短信key
     * @param accountPhone
     * @return
     */
    public static String businessRegisterCodeMinute(String accountPhone) {
        return "business:register:code:minute:phone:"+accountPhone;
    }

    /**
     *商家注册短信验证码KEY
     * @param accountPhone
     * @return
     */
    public static String businessRegisterCodeKey(String accountPhone) {
        return "business:register:code:phone:"+accountPhone;
    }

    /**
     *商家一小时内发送短信的总次数
     * @param accountPhone
     * @return
     */
    public static String businessSendNumbers(String accountPhone) {
        return "business:register:numbers:phone:"+accountPhone;
    }

    /**
     * 商家注册身份证锁
     * @param accountIdcard
     * @return
     */
    public static String getLockBusinessIdcardKey(String accountIdcard) {
        return "business:lock:register:accountIdcard:"+accountIdcard;
    }

    /**
     * 商家注册电话锁
     * @param accountPhone
     * @return
     */
    public static String getLockBusinessPhoneKey(String accountPhone) {
        return "business:lock:register:accountPhone:"+accountPhone;
    }

    /**
     * 商家缴费ID锁
     * @param paymentId
     * @return
     */
    public static String getLockPaymentIdKey(String paymentId){
        return "business:lock:payment:paymentId:"+paymentId;
    }

    /**
     * 商家注册账号名锁
     * @param accountName
     * @return
     */
    public static String getLockBusinessNameKey(String accountName) {
        return "business:lock:register:accountName:"+accountName;
    }

    /**
     *商家一分钟内是否发送过注册短信key
     * @param accountPhone
     * @return
     */
    public static String businessLoginCodeMinute(String accountPhone) {
        return "business:login:code:minute:phone:"+accountPhone;
    }

    /**
     *商家注册短信验证码KEY
     * @param accountPhone
     * @return
     */
    public static String businessLoginCodeKey(String accountPhone) {
        return "business:login:code:phone:"+accountPhone;
    }

    /**
     *商家一小时内发送短信的总次数
     * @param accountPhone
     * @return
     */
    public static String businessSendLoginNumbers(String accountPhone) {
        return "business:login:numbers:phone:"+accountPhone;
    }
}
